﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Lumos.Models
{
    [Table("Groups")]
    public class GroupsDbModel
    {
        [Key]
        public int Id { get; set; }

        [Required(ErrorMessage="Group name is required")]
        [Display(Name="Group Name")]
        [StringLength(255, ErrorMessage="Group name cannot exceed 255 characters")]
        public string Name { get; set; }

        [Display(Name="Group Location")]
        public string Location { get; set; }

    }
}